<%@page import="com.view.EmployeePageView"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Create Employee</title>
</head>
<body>
<%
	EmployeePageView pageView = (EmployeePageView)request.getAttribute("employeePageView");
%>
<div id="createEmployee">
<%
	if(request.getAttribute("error") !=null && !request.getAttribute("error").equals("") ){
%>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="300" align="center">
	<tr bgcolor="#aaaaaa">
		<td align="center">

		<table cellspacing="1" cellpadding="4" border="0" width="650">
			<tr>
				<td bgcolor="#004080" align="center" colspan=""><font
					face="Arial" size="3" color="RED" style="font-size: 15px;">
				<b> ERROR : <%=request.getAttribute("error") %></b> </font></td>
			</tr>

			<tr>
				<td bgcolor="#ececec" align="center"><font face="Verdana"
					size="5" style="font-size: 20px; "> <marquee><font color="blue">There was a problem in last operation</font></marquee> </font></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<%} %>
<%
	if(request.getAttribute("Message") !=null && !request.getAttribute("Message").equals("") ){
%>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="650" align="center">
	<tr bgcolor="#aaaaaa">
		<td align="center">

		<table cellspacing="1" cellpadding="4" border="0" width="650">
			<tr>
				<td bgcolor="Green" align="center" colspan=""><font
					face="Arial" size="3" color="White" style="font-size: 15px;">
				<b>  <%=request.getAttribute("Message") %></b> </font></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
<%} %>
<br>
<form action="/LMS/AdminServlet?MODO=formSubmit" name="CreateEmployeeForm" method="post">
<table border="0" cellpadding="0" cellspacing="0" width="800"
		align="left">
		<tr bgcolor="#cccccc">
			<td align="left" width="200"><font
				face="Arial" size="3"  style="font-size: 15px;font-weight: bolder;">
				Employee Name
			</font>
			</td>
			<td align="left" width="400">
				<input type="text" name="empName" size="14" maxlength="10" value="<%=pageView.getEmpName()%>"></td>
		</tr>
		<tr bgcolor="#ececec">
			<td align="left" width="200"><font
				face="Arial" size="3"  style="font-size: 15px;font-weight: bolder;">
				Employee User Name :-
			</font>
			</td>
			<td align="left" width="400">
				<input type="text" name="userName" size="14" maxlength="10" value="<%=pageView.getEmpUserName()%>">
			</td>
		</tr>
		<tr bgcolor="#cccccc">
			<td align="left" width="200"><font
				face="Arial" size="3"  style="font-size: 15px;font-weight: bolder;">
				Employee Password:-
			</font>
			</td>
			<td align="left" width="400">
				<input type="text" name="password" size="14" maxlength="10" value="<%=pageView.getEmpPassword()%>">
			</td>
		</tr>
		<tr bgcolor="#ececec">
			<td align="left" width="200"><font
				face="Arial" size="3"  style="font-size: 15px;font-weight: bolder;">
				Employee Role :-
			</font>
			</td>
			<td align="left" width="400">
				<select name="empRole">
					<option value="M"> Manager</option>
					<option value="N"> Normal Employee</option>
				</select>
				</td>
		</tr>
		<tr bgcolor="#ececec">
			<tr bgcolor="#ececec">
				<td colspan="2" align="center"><input type="Submit"
					value="Create Employee" style="font-size: 15px; font-family: Verdana">
				</td>
			</tr>
	</table>
</form>
</div>	
</body>
</html>